<%@page import="com.huixue.cn.ztej.bean.Resource"%>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.huixue.cn.ztej.bean.RoleResource"%>
<%@ page import="com.huixue.cn.ztej.utils.Urls"%>
<%@ page import="com.huixue.cn.ztej.enums.RoleStatus"%>
<%@ page import="com.huixue.cn.ztej.bean.User"%>
<%@ page language="java" import="java.util.*"%>
<%@ include file="/static/common/taglib.jsp"%>

					<div class="sidebar" id="sidebar">
					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
					</script>

					<div class="sidebar-shortcuts" id="sidebar-shortcuts">
						<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
							<button class="btn btn-success">
								<i class="icon-signal"></i>
							</button>

							<button class="btn btn-info">
								<i class="icon-pencil"></i>
							</button>

							<button class="btn btn-warning">
								<i class="icon-group"></i>
							</button>

							<button class="btn btn-danger">
								<i class="icon-cogs"></i>
							</button>
						</div>

						<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
							<span class="btn btn-success"></span>

							<span class="btn btn-info"></span>

							<span class="btn btn-warning"></span>

							<span class="btn btn-danger"></span>
						</div>
					</div><!-- #sidebar-shortcuts -->

					<ul class="nav nav-list">
					
<%
	Resource currentRes = (Resource)request.getSession().getAttribute("currentRes");
	List<RoleResource> ticker = (List<RoleResource>)request.getSession().getAttribute("ticker");
	if(ticker!=null && ticker.size()>0){
		for(RoleResource rrs :ticker){
%>
			<li class="<%=(rrs.getResourceId()==currentRes.getParentId())?"active open":""%>" id="lm<%=rrs.getResourceId()%>">
				<a href="#" class="dropdown-toggle" >
					<i class="<%=rrs.getResource().getCssClass()%>"></i>
					<span class="menu-text"><%=rrs.getResource().getResName()%></span>
					<b class="arrow icon-angle-down"></b>
				</a>
<%			
			if(rrs.getResource().getHavechild()==1){
%>	
				<ul class="submenu">
<%				
				List<RoleResource> childTicker = rrs.getResource().getrRoleList();
				for(RoleResource childRrs :childTicker){	
%>
					<li class="<%=(childRrs.getResourceId()==currentRes.getResourceId())?"active":"" %>" id="z<%=childRrs.getResourceId()%>">
						<a href="${ctx}/<%=childRrs.getResource().getResUrl().trim()%>">
							<i class="icon-double-angle-right"></i><%=childRrs.getResource().getResName().trim()%>
						</a>
					</li>								
<%					
				}
%>
				</ul>
<%				
			}
%>
			</li>
<%
		}
	}
%>					
				
					</ul> <!-- /.nav-list -->

					<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
					</div>

					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
					</script>
				</div>